package com.nxk.modules.content.api;

import com.nxk.modules.content.entity.ConColunm;
import com.nxk.modules.content.service.ConColunmService;
import com.nxk.modules.exception.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/web/api/colunm")
public class ColunmApiController {

    @Autowired
    private ConColunmService conColunmService;

    @PostMapping("colunmDetail")
    public ResultEntity colunmDetail(ConColunm conColunm){
        ConColunm byId = conColunmService.getById(conColunm);
        return ResultEntity.success(byId);
    }


}
